package com.fjx.sortdemo.entity.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

@Data
public class SortResp {

    private long id;

    @JsonFormat(pattern = "yyyy.MM.dd")
    private LocalDate date;

    private String name;

    private int age;


    private List<LabelItem> labelItemList;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static  class LabelItem {
        private String label;
        private BigDecimal value;
    }
}
